package com.lunevich.demo;

import com.lunevich.demo.activities.ListViewActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class ImageLoaderDemoActivity extends Activity implements OnClickListener {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.main);
		
		Button btnShowListView = (Button)findViewById(R.id.btnShowListView);
		Button btnShowGridView = (Button)findViewById(R.id.btnShowGridView);
		
		btnShowListView.setOnClickListener(this);
		btnShowGridView.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnShowListView:
			Intent showList = new Intent(ImageLoaderDemoActivity.this, ListViewActivity.class);
			startActivity(showList);
			break;
		}
	}
}